﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Prototype.Master" CodeBehind="details.aspx.vb" Inherits="prototype.details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    Here you will find details information of your walking route.&nbsp; Please 
    ensure you follow all instructions regarding gear and be aware of any safety 
    precautions.<br />
<br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="RouteID" DataSourceID="walkingweb" BackColor="White" 
        BorderColor="#669900">
        <Columns>
            <asp:BoundField DataField="Rate" HeaderText="Rating" SortExpression="Rate" />
            <asp:BoundField DataField="RouteName" HeaderText="Route Name" 
                SortExpression="RouteName" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:BoundField DataField="City" HeaderText="City" SortExpression="City" />
            <asp:BoundField DataField="Distance" HeaderText="Distance" 
                SortExpression="Distance" />
            <asp:BoundField DataField="WalkingTime" HeaderText="Walking Time" 
                SortExpression="WalkingTime" />
            <asp:ImageField DataImageUrlField="Pictures" HeaderText="Pictures">
                <ControlStyle Height="200px" Width="200px" />
            </asp:ImageField>
            <asp:BoundField DataField="RouteMap" HeaderText="Map" 
                SortExpression="RouteMap" />
        </Columns>
        <HeaderStyle BackColor="#E6FEBF" Font-Size="Small" />
    </asp:GridView>
    <asp:SqlDataSource ID="walkingweb" runat="server" 
        ConnectionString="<%$ ConnectionStrings:walkingweb %>" 
        ProviderName="<%$ ConnectionStrings:walkingweb.ProviderName %>" 
        SelectCommand="SELECT * FROM [routes] WHERE ([RouteID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="RouteID" QueryStringField="RouteID" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
<br />

<br />
</asp:Content>
